package com.building.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author yinjiahui
@create 2021-04-11 17:11
*/
@ApiModel(value="com-building-entity-Shopping")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_shopping")
public class Shopping implements Serializable {
    /**
     * 购物车id     YJH
     */
    @TableId(value = "shopping_id", type = IdType.AUTO)
    @ApiModelProperty(value="购物车id     YJH(自增，不用写)",required = false,dataType = "Integer")
    private Integer shoppingId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id",required = false,dataType = "Integer")
    private Integer userId;

    /**
     * 货物名称
     */
    @TableField(value = "name_of_goods")
    @ApiModelProperty(value="货物名称",required = false,dataType = "String")
    private String nameOfGoods;

    /**
     * 型号
     */
    @TableField(value = "shopping_model")
    @ApiModelProperty(value="型号",required = false,dataType = "Integer")
    private Integer shoppingModel;

    /**
     * 单价
     */
    @TableField(value = "shopping_price")
    @ApiModelProperty(value="单价",required = false,dataType = "BigDecimal")
    private BigDecimal shoppingPrice;

    /**
     * 数量
     */
    @TableField(value = "shopping_number")
    @ApiModelProperty(value="数量",required = false,dataType = "Integer")
    private Integer shoppingNumber;

    /**
     * 逻辑删除(0否、1是)
     */
    @TableField(value = "is_del")
    @ApiModelProperty(hidden = true)
    private Integer isDel;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(hidden=true)
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField(value = "update_date")
    @ApiModelProperty(hidden = true)
    private Date updateDate;

    private static final long serialVersionUID = 1L;
}